package com.sl.au.service;

import com.sl.au.entity.Chance;
import com.sl.au.entity.ChanceFlowNode;
import com.sl.au.entity.User;
import com.sl.au.repository.ChanceFlowNodeRepository;

import java.util.List;


public interface ChanceFlowNodeService extends BaseService {
	ChanceFlowNodeRepository getRepository();

	/**
	 * 写入流转记录
	 * @param user
	 * @param operationType
	 * @param content
	 */
	void flow(User user, Chance saleChance, String startNode, String endNode,String flowOperate);
	
	/**
	 * 写入流转记录
	 * @param user
	 * @param operationType
	 * @param content
	 */
	void flow(User user, Chance saleChance, String startNode, String endNode,String flowOperate,String reason);
	
	/**
	 * 读取流转记录
	 * @param start
	 * @param length
	 * @param condition
	 * @return
	 */
	List<ChanceFlowNode> getFlows(String chanceId);

}
